package top.xinsix.est.service;
import top.xinsix.est.pojo.SmsLog;
import java.util.Date;
import java.util.List;
import java.util.Map;
import top.xinsix.est.dto.Page;
/**
* Created by shang-pc on 2015/11/7.
*/
public interface SmsLogService {

    public SmsLog getSmsLogById(Long id);

    public List<SmsLog>	getSmsLogListByMap(Map<String,Object> param);

    public Integer getSmsLogCountByMap(Map<String,Object> param);

    public Integer qdtxAddSmsLog(SmsLog smsLog);

    public Integer qdtxModifySmsLog(SmsLog smsLog);

    public Integer qdtxDeleteSmsLogById(Long id);

    public Integer qdtxBatchDeleteSmsLog(String ids);

    public Page<SmsLog> querySmsLogPageByMap(Map<String,Object> param,Integer pageNo,Integer pageSize);

    /**
     * 发送信息
     * @param phone 手机
     * @param codeType 验证类型
     * @param userId 用户ID
     * @return 是否发送成功
     */
    public boolean sendMessage(String phone,Integer codeType,Long userId);

}
